get the count of total lines in a file